home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13226 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  776 b 

  1. Path: news.ust.hk!cskmchui
  2. From: cskmchui@uxmail.ust.hk (Chui Ka Ming)
  3. Newsgroups: comp.lang.c
  4. Subject: What is localhost?
  5. Date: 5 Apr 1996 03:43:01 GMT
  6. Organization: The Hong Kong University of Science and Technology
  7. Message-ID: <4k24s5$rt1@ustsu10.ust.hk>
  8. NNTP-Posting-Host: csl3su30.cs.ust.hk
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11.  
  12. Hello all,
  13.     
  14.     I am trying to writing a echo server and client. when
  15. I had started the server and then started client on the same host
  16. I typed : client localhost port_name . However, the connection
  17. was refused. I known that some internet program able to bind
  18. localhost to the offical name. Could you tell me how to write 
  19. it? For the server, I got the host address by getenv("HOST") 
  20. then gethostbyname() function.
  21.  
  22. Thank a lot =>
  23. Henry Chui
  24.  
  25.